From: Stefan Monnier Date: Tue, 1 Dec 2009 19:42:28 +0000 (+0000) Subject: (pcomplete/cd): Complete more than one argument, just in case. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~9141 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=da76d349f16da15e5516716eb4f83c32eea6414d;p=emacs.git (pcomplete/cd): Complete more than one argument, just in case. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d221bf207af..83b80072381 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-12-01 Stefan Monnier + * pcmpl-unix.el (pcomplete/cd): Complete more than one argument, just + in case. + * pcomplete.el (pcomplete-std-complete): Don't try to complete past the last element. diff --git a/lisp/pcmpl-unix.el b/lisp/pcmpl-unix.el index c12920f76d2..9d33ed19621 100644 --- a/lisp/pcmpl-unix.el +++ b/lisp/pcmpl-unix.el @@ -51,7 +51,7 @@ with the SSH option \"HashKnownHosts no\"." ;;;###autoload (defun pcomplete/cd () "Completion for `cd'." - (pcomplete-here (pcomplete-dirs))) + (while (pcomplete-here (pcomplete-dirs)))) ;;;###autoload (defalias 'pcomplete/pushd 'pcomplete/cd)